package com.louis.reflect;

/**
 * @author XRY
 * @date 2023年06月26日8:59
 */
public class Car {

    private String bind;
    private int lifeTime;
    private String color;

    public Car() {
    }

    public Car(String bind, int lifeTime, String color) {
        this.bind = bind;
        this.lifeTime = lifeTime;
        this.color = color;
    }

    //普通方法
    private void use(){
        System.out.println("私有方法..........");
    }

    public String getBind() {
        return bind;
    }

    public void setBind(String bind) {
        this.bind = bind;
    }

    public int getLifeTime() {
        return lifeTime;
    }

    public void setLifeTime(int lifeTime) {
        this.lifeTime = lifeTime;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Car{" +
                "bind='" + bind + '\'' +
                ", lifeTime=" + lifeTime +
                ", color='" + color + '\'' +
                '}';
    }
}
